﻿@page "/listbox"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    ListBox
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" class="rz-pb-4">
    Demonstration and configuration of the Radzen Blazor <strong>ListBox</strong> component.
</RadzenText>


<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-8">
    Get and Set the value of ListBox
</RadzenText>
<RadzenText TextStyle="TextStyle.Body1" class="rz-mb-8">
    As all Radzen Blazor input components the <strong>ListBox</strong> has a Value property which gets and sets the value of the component. Use <code>@@bind-Value</code> to get the user input.
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxBindValue">
    <ListBoxBindValue />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12">
    Get and Set the value of ListBox using Value and Change event
</RadzenText>
<RadzenText TextStyle="TextStyle.Body1" class="rz-mb-8">
    Value property can be used to set the value of the component and <code>Change</code> event to get the user input.
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxChangeEvent">
    <ListBoxChangeEvent />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12 rz-mb-6">
    Define Text and Value properties
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxTextValueProperties">
    <ListBoxTextValueProperties />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12 rz-mb-6">
    ListBox with template
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxTemplate">
    <ListBoxTemplate />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12 rz-mb-6">
    ListBox <strong>multiple</strong> selection
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxMultiple">
    <ListBoxMultiple />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12 rz-mb-6">
    Filtering case sensitivity and filter operator
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxFiltering">
    <ListBoxFiltering />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12 rz-mb-6">
    Custom filtering with <strong>LoadData</strong> event
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxFilteringLoadData">
    <ListBoxFilteringLoadData />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12 rz-mb-6">
    ListBox virtualization using <strong>IQueryable</strong>
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxVirtualization">
    <ListBoxVirtualization />
</RadzenExample>

<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-12 rz-mb-6">
    ListBox virtualization with <strong>LoadData</strong> event
</RadzenText>
<RadzenExample ComponentName="ListBox" Example="ListBoxVirtualizationLoadData">
    <ListBoxVirtualizationLoadData />
</RadzenExample>